
Replication Data for: A research note on the prevalence of housing eviction among children born in American cities

Forthcoming in Demography

Ian Lundberg and Louis Donnelly

Feel free to email with questions: ilundberg@princeton.edu

This archive contains the code necessary to replicate results reported in the paper and the online supplement.

Below, each # represents a subdirectory you should create to run the files. Because Dataverse does not support subdirectories, we use the naming convention [subdirectory]---[file_name] for the posted files.


# Code

This is the main replication subdirectory. All files are posted on dataverse.

run_all_code.R
- Calls all of the following files in order

A_Eviction_Demography_CleanAndFit.R
- Cleans data, calls file B, and fits models

B_Eviction_Demography_Stan.R
- Stan code to fit the model

C_Eviction_Demography_ProduceOutput.R
- Translates model results to output reported in paper

D_Eviction_Demography_RandomForest.R
- Alternative random forest specification discussed in the online supplement.

E_Eviction_Demography_vitalRecordsNote.R
- Brief file comparing the sample to a similar population in vital records, discussed in the online supplement.


# Data

We cannot post the data because it is available under a restricted use data agreement with the Fragile Families and Child Wellbeing Study. To learn more and apply for access, visit <https://fragilefamilies.princeton.edu/restricted>

The files to request are:

ff_res_merge4.dta
- Contains data from birth through age 5

y9merged_112011file.dta
- Contains data from age 9

year9weights_082013res.dta
- Contains survey weights from age 9

FF_Y15_res.dta
- Contains data from age 15

ffgeo_all_res.dta
- Contains geographic information (Census tract characteristics)

In addition to these files, the comparison to vital records in the online supplement requires three very large files available publicly at <http://www.nber.org/data/vital-statistics-natality-data.html>

natl1998.dta
natl1999.dta
natl2000.dta


# Intermediate

This stores intermediate data files created by the code. We cannot post these for the same reason we cannot post the data, but they are the direct result of applying the code to the restricted data.


# Output

This stores files containing the information and figures we transferred into the manuscript itself. These files are posted so that (a) it is easy to check if the paper contains typos and (b) anyone replicating the paper can see the output that the code should produce.
